package cn.webestar.scms.security;

import cn.webestar.scms.security.api.AccountLoginDto;
import cn.webestar.scms.security.api.PhoneNumLoginDto;

import java.util.List;

/**
 * @author zgs
 */
public interface SecurityService {

    SecurityUser loadSecurityUser(AccountLoginDto dto);

    SecurityUser loadSecurityUser(PhoneNumLoginDto dto);

    Object sendSmsCode(Integer type, String phoneNum, String smsCode);

    /**
     * 获取用户所属租户列表
     */
    List<SecurityCorp> loadUserCorps(Long userId);

    /**
     * 切换租户
     */
    Boolean switchCorp(Long id);

}
